package com.itheima.Demo01.demo02;

import java.io.FileWriter;
import java.io.IOException;
import java.util.Scanner;

public class name {
    public static void main(String[] args) throws IOException {
        Scanner sc= new Scanner(System.in);
        System.out.println("请输入用户名");
        String name = sc.next();
        System.out.println("请输入密码");
        String wrod = sc.next();

        FileWriter fw = new FileWriter("day0628-code\\b.txt");
        fw.write(name);
        fw.write("\r\n");
        fw.write(wrod);

        fw.flush();
        fw.close();
    }
}
